﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Imagenator.Forms
{
	partial class FailedFilesBox : ArgusLib.Controls.BaseForm
	{
		FailedFilesBox()
		{
			InitializeComponent();
		}

		public static void Show(string[] files)
		{
			FailedFilesBox form = new FailedFilesBox();
			form.lbFiles.Items.AddRange(files);
			form.ShowDialog();
		}

		private void lbFiles_DoubleClick(object sender, EventArgs e)
		{
			if (this.lbFiles.SelectedIndex < 0)
				return;
			System.Diagnostics.Process.Start("explorer.exe", string.Format("/select,\"{0}\"", this.lbFiles.SelectedItem));
		}
	}
}
